//
//  ICMOwnerInfoEditView.m
//  ICrEAM
//
//  Created by xphone on 16/11/22.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ICMOwnerInfoEditView.h"
#import "NSDate+convenience.h"
#import "ProvinceCityRespose.h"
#import "IndustryResponse.h"

@implementation ICMOwnerInfoEditView

- (instancetype)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame])
    {
        self.backgroundColor = BackgroundColor_White;
        [self addSubview:self.ownerNameView];
        [self addSubview:self.ownerSexView];
        [self addSubview:self.ownerPhoneView];
        [self addSubview:self.ownerShengView];
        [self addSubview:self.ownerBirthView];
        [self addSubview:self.ownerBirthBtn];
        [self addSubview:self.ownerPropertyView];
        [self addSubview:self.ownerCityView];
        [self addSubview:self.ownerTownView];
        [self addSubview:self.ownerVerTypeView];
        [self addSubview:self.ownerVerNumView];
        [self addSubview:self.ownerAddressView];
        [self addSubview:self.ownerServerView];
        [self addSubview:self.ownerJobTypeView];
        [self addSubview:self.ownerMoneyView];
        [self addSubview:self.ownerLikeView];
        [self addSubview:self.ownerShopTypeView];
        [self addSubview:self.ownerDoTypeView];
        [self addSubview:self.ownerGitView];
        [self addSubview:self.ownerActView];
        
        [self getCityData];
    }
    return self;
}

//车主姓名
- (ICMTitleTextFeildView *)ownerNameView
{
    if(!_ownerNameView)
    {
        _ownerNameView = [ICMTitleTextFeildView createNoneditableICMTitleTextFeildViewWithFrame:CGRectMake(ActualWidth(20), ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"车主姓名"];
    
    }
    return _ownerNameView;
}

//车主性别
- (ICMTitleTextFeildView *)ownerSexView
{
    if(!_ownerSexView)
    {
        _ownerSexView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerNameView.rightEdge + ActualWidth(20), ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"性别" addTarget:nil selector:nil];
        NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumGenderPre)];
        _ownerSexView.clickDataArray = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
        
    }
    return _ownerSexView;
}

//手机号码
- (ICMTitleTextFeildView *)ownerPhoneView
{
    if(!_ownerPhoneView)
    {
        _ownerPhoneView = [ICMTitleTextFeildView createEditableICMTitleTextFeildViewWithFrame:CGRectMake(ScreenWidth/2+ActualWidth(20), ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"手机号码"];
        _ownerPhoneView.contentTextFeild.keyboardType = UIKeyboardTypeNumberPad;
    }
    return _ownerPhoneView;
}

//所在省
- (ICMTitleTextFeildView *)ownerShengView
{
    if(!_ownerShengView)
    {
        _ownerShengView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerPhoneView.rightEdge + ActualWidth(20), ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"所在省（市）" addTarget:nil selector:nil];
        _ownerShengView.delegate = self;
        
    }
    return _ownerShengView;
}

//获得省市县
- (void)getCityData{
    self.cityDataArray = [ICrEAMTool getProvinceCityArray];
    NSMutableArray *provinceNameArray = [[NSMutableArray alloc] init];
    NSMutableArray *provinceNoArray = [[NSMutableArray alloc] init];
    for(int i = 0;i<self.cityDataArray.count;i++)
    {
        NSArray *tempArray = self.cityDataArray[i];
        ProvinceModel *provinceData = tempArray[0];
        [provinceNameArray addObject:provinceData.provinceName];
        [provinceNoArray addObject:provinceData.provinceCode];
    }
    self.ownerShengView.clickDataArray = provinceNameArray;
    self.ownerShengView.clickDataNoArray = provinceNoArray;
}


//生日
- (ICMTitleTextFeildView *)ownerBirthView
{
    if(!_ownerBirthView)
    {
        _ownerBirthView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(ActualWidth(20), self.ownerNameView.bottomEdge + ActualHeight(25), ActualWidth(182), ActualHeight(63)) title:@"出生日期" addTarget:self selector:@selector(clickCalenderBtnFrom)];
    }
    return _ownerBirthView;
}

- (UIButton *)ownerBirthBtn
{
    if(!_ownerBirthBtn)
    {
        _ownerBirthBtn = [[UIButton alloc]initWithFrame:CGRectMake(self.ownerBirthView.rightEdge+ActualWidth(2), self.ownerBirthView.bottomEdge -ActualHeight(36), ActualWidth(36), ActualWidth(36))];
        [_ownerBirthBtn addTarget:self action:@selector(clickCalenderBtnFrom) forControlEvents:UIControlEventTouchUpInside];
        UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, ActualHeight(30), ActualWidth(30))];
        imageView.image = [UIImage imageNamed:Appointment_Calendar];
        [_ownerBirthBtn addSubview:imageView];
    }
    return _ownerBirthBtn;
}

- (void)clickCalenderBtnFrom{
    [Window addSubview:self.datePickerView];
}


- (PACACalendarView *)datePickerView{
    if(!_datePickerView){
        _datePickerView = [PACACalendarView createCalendarViewWithDidSelectedDate:nil minDate:nil maxDate:nil andFrame:CGRectMake(ScreenWidth/2-150, ScreenHeight/2-150, ActualWidth(300), ActualWidth(380))];
        _datePickerView.delegate = self;
        
    }
    return _datePickerView;
}

/*ICMDatePickerViewDelegate*/
- (void)calendarView:(PACACalendarView *)calendarView didSelectedDate:(NSDate*)selectedDate{
    if(calendarView == self.datePickerView){
        self.selectedDate = selectedDate;
        NSString *dateString = [selectedDate separatorStyleDateTimeString];
        self.ownerBirthView.contentTextFeild.text = dateString;
    }
    
}

//清空时间
- (void)delTime:(PACACalendarView *)calendarView
{
    if(calendarView == self.datePickerView){
        self.selectedDate = nil;
        self.ownerBirthView.contentTextFeild.text = @"";
        self.ownerBirthView.contentText = @"";
    }
}

//车主性质
- (ICMTitleTextFeildView *)ownerPropertyView
{
    if(!_ownerPropertyView)
    {
        _ownerPropertyView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerBirthBtn.rightEdge + ActualWidth(20), self.ownerNameView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"车主性质" addTarget:nil selector:nil];
        NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumOwnerPropertyPre)];
        _ownerPropertyView.clickDataArray = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
        
    }
    return _ownerPropertyView;
}

//所在市
- (ICMTitleTextFeildView *)ownerCityView
{
    if(!_ownerCityView)
    {
        _ownerCityView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(ScreenWidth/2+ActualWidth(20), self.ownerNameView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"所在城市" addTarget:nil selector:nil];
        _ownerCityView.delegate = self;
        
    }
    return _ownerCityView;
}

//所在区县
- (ICMTitleTextFeildView *)ownerTownView
{
    if(!_ownerTownView)
    {
        _ownerTownView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerCityView.rightEdge + ActualWidth(20), self.ownerNameView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"所在区县" addTarget:nil selector:nil];
        
    }
    return _ownerTownView;
}

//证件类型
- (ICMTitleTextFeildView *)ownerVerTypeView
{
    if(!_ownerVerTypeView)
    {
        _ownerVerTypeView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(ActualWidth(20), self.ownerBirthView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"证件类型" addTarget:nil selector:nil];
        NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumCerTypePre)];
        _ownerVerTypeView.clickDataArray = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
        
    }
    return _ownerVerTypeView;
}

//证件号码
- (ICMTitleTextFeildView *)ownerVerNumView
{
    if(!_ownerVerNumView)
    {
        _ownerVerNumView = [ICMTitleTextFeildView createEditableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerVerTypeView.rightEdge +ActualWidth(20), self.ownerBirthView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"证件号码"];
        
    }
    return _ownerVerNumView;
}

//详细地址
- (ICMTitleTextFeildView *)ownerAddressView
{
    if(!_ownerAddressView)
    {
        _ownerAddressView = [ICMTitleTextFeildView createEditableICMTitleTextFeildViewWithFrame:CGRectMake(ScreenWidth/2+ActualWidth(20), self.ownerBirthView.bottomEdge + ActualHeight(25), ActualWidth(460), ActualHeight(63)) title:@"详细地址"];
        
    }
    return _ownerAddressView;
}

//专属服务顾问
- (ICMTitleTextFeildView *)ownerServerView
{
    if(!_ownerServerView)
    {
        _ownerServerView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(ActualWidth(20), self.ownerVerTypeView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"专属服务顾问" addTarget:nil selector:nil];
        
    }
    return _ownerServerView;
}

//获得所有的服务顾问姓名和编码
- (void)getAllServerNameAndCodeWithNoArray:(NSMutableArray *)noArray WithNameArray:(NSMutableArray *)nameArray
{
    self.ownerServerView.clickDataArray = nameArray;
    self.ownerServerView.clickDataNoArray = noArray;
}

//行业小类
- (ICMTitleTextFeildView *)ownerJobTypeView
{
    if(!_ownerJobTypeView)
    {
        _ownerJobTypeView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(ActualWidth(20), self.ownerServerView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"行业小类" addTarget:nil selector:nil];
        
        
    }
    return _ownerJobTypeView;
}

//家庭月收入
- (ICMTitleTextFeildView *)ownerMoneyView
{
    if(!_ownerMoneyView)
    {
        _ownerMoneyView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerJobTypeView.rightEdge +ActualWidth(20), self.ownerServerView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"家庭月收入" addTarget:nil selector:nil];
        NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumFamilyIncomePre)];
        _ownerMoneyView.clickDataArray = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
        
    }
    return _ownerMoneyView;
}

//爱好
- (ICMTitleTextFeildView *)ownerLikeView
{
    if(!_ownerLikeView)
    {
        _ownerLikeView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(ScreenWidth/2+ActualWidth(20), self.ownerServerView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"爱好" addTarget:nil selector:nil];
        NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumHobbyPre)];
        _ownerLikeView.clickDataArray = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
        _ownerLikeView.isMultiSelect = YES;
    }
    return _ownerLikeView;
}

//消费特征
- (ICMTitleTextFeildView *)ownerShopTypeView
{
    if(!_ownerShopTypeView)
    {
        _ownerShopTypeView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerLikeView.rightEdge +ActualWidth(20), self.ownerServerView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"消费特征" addTarget:nil selector:nil];
        NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumConsumePropertyPre)];
        _ownerShopTypeView.clickDataArray = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
        
    }
    return _ownerShopTypeView;
}

//行为特征
- (ICMTitleTextFeildView *)ownerDoTypeView
{
    if(!_ownerDoTypeView)
    {
        _ownerDoTypeView = [ICMTitleTextFeildView createClickableICMTitleTextFeildViewWithFrame:CGRectMake(ActualWidth(20), self.ownerJobTypeView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"行为特征" addTarget:nil selector:nil];
        NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumMannerPropertyPre)];
        _ownerDoTypeView.clickDataArray = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
        
    }
    return _ownerDoTypeView;
}

//喜欢的礼品
- (ICMTitleTextFeildView *)ownerGitView
{
    if(!_ownerGitView)
    {
        _ownerGitView = [ICMTitleTextFeildView createEditableICMTitleTextFeildViewWithFrame:CGRectMake(self.ownerDoTypeView.rightEdge +ActualWidth(20), self.ownerJobTypeView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"喜欢的礼品"];
        
    }
    return _ownerGitView;
}

//感兴趣的活动
- (ICMTitleTextFeildView *)ownerActView
{
    if(!_ownerActView)
    {
        _ownerActView = [ICMTitleTextFeildView createEditableICMTitleTextFeildViewWithFrame:CGRectMake(ScreenWidth/2+ActualWidth(20), self.ownerJobTypeView.bottomEdge + ActualHeight(25), ActualWidth(220), ActualHeight(63)) title:@"感兴趣的活动"];
        
    }
    return _ownerActView;
}

//赋值
- (void)setupData
{
    self.ownerNameView.contentText = self.personerModel.ownerName;
    self.ownerSexView.contentText = [ICrEAMTool getCodeModelForCode:self.personerModel.gender].desc;
    self.ownerPhoneView.contentText = self.personerModel.phoneNum;
    self.ownerShengView.contentText = [self getCityDataWithCode:self.personerModel.province Type:0];
    self.ownerShengView.noStr = self.personerModel.province;
    
    self.ownerBirthView.contentText = [ICrEAMTool getDateWithTimeInterval:self.personerModel.birthday];
    self.ownerPropertyView.contentText = [ICrEAMTool getCodeModelForCode:self.personerModel.ownerType].desc;
    self.ownerCityView.contentText = [self getCityDataWithCode:self.personerModel.city Type:1];
    self.ownerCityView.noStr = self.personerModel.city;
    self.ownerTownView.contentText = [self getCityDataWithCode:self.personerModel.district Type:2];
    self.ownerTownView.noStr = self.personerModel.district;
    
    self.ownerVerTypeView.contentText = [ICrEAMTool getCodeModelForCode:self.personerModel.cerType].desc;
    self.ownerVerNumView.contentText = self.personerModel.cerNum;
    self.ownerAddressView.contentText = self.personerModel.address;
    
    self.ownerServerView.contentText = self.personerModel.adviserName;
    self.ownerServerView.noStr = self.personerModel.adviserCode;
    
    //行业小类
    
    self.ownerJobTypeView.contentText = [ICrEAMTool getCodeModelForCode:self.personerModel.profType].desc;
    self.ownerMoneyView.contentText = [ICrEAMTool getCodeModelForCode:self.personerModel.familyIncome].desc;
    
    //爱好
    NSMutableString *hobby = [[NSMutableString alloc] init];
    NSArray *hobbysArray = [self.personerModel.hobby componentsSeparatedByString:@";"];
    if(self.personerModel.hobby && ![self.personerModel.hobby isEqualToString:@""] && hobbysArray && hobbysArray.count > 0)
    {
        for(NSString *str in hobbysArray)
        {
            NSString *temp = [ICrEAMTool getCodeModelForCode:str].desc;
            if(temp && ![temp isEqualToString:@""])
            {
                [hobby appendString:temp];
                [hobby appendString:@";"];
            }
        }
    }
    
    //self.ownerLikeView.contentText = hobby;
    self.ownerLikeView.contentText = self.personerModel.hobby;
    self.ownerShopTypeView.contentText = [ICrEAMTool getCodeModelForCode:self.personerModel.consumeProperty].desc;
    
    self.ownerDoTypeView.contentText = [ICrEAMTool getCodeModelForCode:self.personerModel.mannerProperty].desc;
    self.ownerGitView.contentText = self.personerModel.interestedPresent;
    self.ownerActView.contentText = self.personerModel.interestedActivity;
    
    //初始化城市和县区
    [self setupCityListWithProvinceCode:self.personerModel.province];
    [self setupDistrictyListWithProvinceCode:self.personerModel.province WithCityCode:self.personerModel.city];
    //设置大分类小分类
    NSArray *firstArray = [ICrEAMTool queryIndustry];
    NSArray *secondArray = [[NSArray alloc] init];
    for(IndustryModel *firstModel in firstArray)
    {
        if([firstModel.INDUSTRY_CODE isEqualToString:self.personerModel.INDUSTRY_FIRST])
        {
            secondArray = firstModel.INDUSTRY_SMALL;
            break;
        }
    }
    NSMutableArray *temp = [[NSMutableArray alloc] init];
    for(int i = 0;i<secondArray.count;i++)
    {
        IndustrySmallModel *tempModel = secondArray[i];
        [temp addObject:tempModel.INDUSTRY_NAME];
    }
    _ownerJobTypeView.clickDataArray = temp;
    
}

- (NSArray *)cityDataArray
{
    if(!_cityDataArray)
    {
        _cityDataArray = [[NSArray alloc] init];
    }
    return _cityDataArray;
}

//ICMTitleTextFeildViewDelegate
- (void)clickedData:(ICMTitleTextFeildView *)titleTextFeildView
{
    if(titleTextFeildView == self.ownerShengView)
    {
        self.ownerCityView.contentText = @"";
        self.ownerCityView.noStr = @"";
        self.ownerTownView.contentText = @"";
        self.ownerTownView.noStr = @"";
        [self setupCityListWithProvinceCode:self.ownerShengView.noStr];
    }
    if(titleTextFeildView == self.ownerCityView)
    {
        self.ownerTownView.contentText = @"";
        self.ownerTownView.noStr = @"";
        [self setupDistrictyListWithProvinceCode:self.ownerShengView.noStr WithCityCode:self.ownerCityView.noStr];
    }
}

//根据省code查找citylist
- (void)setupCityListWithProvinceCode:(NSString *)code
{
    NSMutableArray *cityNameArray = [[NSMutableArray alloc] init];
    NSMutableArray *cityNoArray = [[NSMutableArray alloc] init];
    for(int i = 0;i<self.cityDataArray.count;i++)
    {
        NSArray *tempProvinceArray = self.cityDataArray[i];
        ProvinceModel *provinceData = tempProvinceArray[0];
        if([provinceData.provinceCode isEqualToString:code])
        {
            NSArray *tempCityArray = provinceData.cityList;
            for(int j = 0;j<tempCityArray.count;j++)
            {
                CityModel *citydata = tempCityArray[j];
                [cityNameArray addObject:citydata.cityName];
                [cityNoArray addObject:citydata.cityCode];
            }
        }
        
    }
    self.ownerCityView.clickDataArray = cityNameArray;
    self.ownerCityView.clickDataNoArray = cityNoArray;
}

//根据city code查找districty list
- (void)setupDistrictyListWithProvinceCode:(NSString *)pcode WithCityCode:(NSString *)ccode
{
    NSMutableArray *disNameArray = [[NSMutableArray alloc] init];
    NSMutableArray *disNoArray = [[NSMutableArray alloc] init];
    for(int i = 0;i<self.cityDataArray.count;i++)
    {
        NSArray *tempProvinceArray = self.cityDataArray[i];
        ProvinceModel *provinceData = tempProvinceArray[0];
        if([provinceData.provinceCode isEqualToString:pcode])
        {
            NSArray *tempCityArray = provinceData.cityList;
            for(int j = 0;j<tempCityArray.count;j++)
            {
                CityModel *citydata = tempCityArray[j];
                if([citydata.cityCode isEqualToString:ccode])
                {
                    NSArray *tempDisArray = citydata.districtyList;
                    for(int z = 0;z<tempDisArray.count;z++)
                    {
                        DistrictModel *disData = tempDisArray[z];
                        [disNameArray addObject:disData.distName];
                        [disNoArray addObject:disData.distCode];
                    }
                }
            }
        }
        
    }
    self.ownerTownView.clickDataArray = disNameArray;
    self.ownerTownView.clickDataNoArray = disNoArray;
}

//根据code来查找省市县区
- (NSString *)getCityDataWithCode:(NSString *)code Type:(int)type
{
    self.cityDataArray = [ICrEAMTool getProvinceCityArray];
    if(type == 0)
    {
        //查询省
        for(int i = 0;i<self.cityDataArray.count;i++)
        {
            NSArray *tempProvinceArray = self.cityDataArray[i];
            ProvinceModel *provinceData = tempProvinceArray[0];
            if([provinceData.provinceCode isEqualToString:code])
            {
                return provinceData.provinceName;
            }
            
        }
    }
    if(type == 1)
    {
        //查询市
        for(int i = 0;i<self.cityDataArray.count;i++)
        {
            NSArray *tempProvinceArray = self.cityDataArray[i];
            ProvinceModel *provinceData = tempProvinceArray[0];
            NSArray *tempCityArray = provinceData.cityList;
            for(int j = 0;j<tempCityArray.count;j++)
            {
                CityModel *citydata = tempCityArray[j];
                if([citydata.cityCode isEqualToString:code])
                {
                    return citydata.cityName;
                }
            }
            
        }
    }
    if(type == 2)
    {
        //查询县区
        for(int i = 0;i<self.cityDataArray.count;i++)
        {
            NSArray *tempProvinceArray = self.cityDataArray[i];
            ProvinceModel *provinceData = tempProvinceArray[0];
            NSArray *tempCityArray = provinceData.cityList;
            for(int j = 0;j<tempCityArray.count;j++)
            {
                CityModel *citydata = tempCityArray[j];
                NSArray *tempDisArray = citydata.districtyList;
                for(int z = 0;z<tempDisArray.count;z++)
                {
                    DistrictModel *disData = tempDisArray[z];
                    if([disData.distCode isEqualToString:code])
                    {
                        return disData.distName;
                    }
                }
            }
            
        }
    }
    return @"";
}
@end
